// vue.config.js
const { codeInspectorPlugin } = require('code-inspector-plugin');

module.exports = {
  // 禁用 ESLint
  lintOnSave: false,
  configureWebpack: {
    devtool: 'source-map', // 启用 source-map，用于精准定位错误行号
  },
  // ...other code
  chainWebpack: config => {
    config.plugin('code-inspector-plugin').use(
      codeInspectorPlugin({
        bundler: 'webpack',
      })
    );
  },
};
